package com.wenjie.springbootbugdetection.service.impl;

import com.wenjie.springbootbugdetection.mapper.Model_typeMapper;
import com.wenjie.springbootbugdetection.model.Model_type;
import com.wenjie.springbootbugdetection.service.ModelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Yang wenjie
 * @date 2021/7/13 10:44
 * Nice to Meet you!
 */
@Service
public class ModelServiceImpl implements ModelService {
    @Autowired
    private Model_typeMapper model_typeMapper;

    @Override
    public List<Model_type> selectAllModels() {
        return model_typeMapper.selectAllModels();
    }

    @Override
    public int insertAModelType(Model_type model_type) {
        return model_typeMapper.insertSelective(model_type);
    }
}
